#include <string>
#include <unistd.h>
#include "Logger.h"
#if __cplusplus >= 201402L
#    include "LoggerNew.h"
#endif
// self definde logger
static xncc::Logger shm_logger("logger_test.bin", "/dev/shm/");
#define SHM_LOG (shm_logger)
int main(int /*argc*/, const char** /*argv*/)
{
#if __cplusplus >= 201402L
    xncc::Logger::start();
    for (int i = 10; i < 20; i++) {
        XNCC_LOG_BIN(SHM_LOG, i);
    }
#endif
    return 0;
}